 <!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>管理员菜单</title>


    <link rel="shortcut icon" href="__PUB__/favicon.ico"> 
    <link href="__CSS__/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__CSS__/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__CSS__/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__CSS__/animate.min.css" rel="stylesheet">
    <link href="__CSS__/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="__CSS__/page.css" rel="stylesheet">

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>管理员列表</h5>
                        <div class="ibox-tools">
                            <a class="dropdown-toggle" data-toggle="dropdown" href="{:U('Manager/ad')}" title ="添加">
                                <i class="fa fa-file-text-o"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-sm-3">
                            <form action="{:U('Manager/lst')}"  method ="post" >
                                <div class="input-group">
                                    <input type="text" placeholder="请输入帐号关键词" class="input-sm form-control" name="search"> 
                                    <span class="input-group-btn">
                                        <input type="submit" class="btn btn-sm btn-primary" value="搜索" /> 
                                    </span>
                                </div>
                            </form>
                            </div>
                        </div>
                        <div class="table-responsive">
                            <table class="table table-striped">
                                <thead>
                                    <tr>
                                        <th></th>
                                        <th>管理员ID</th>
                                        <th>管理员帐号</th>
                                        <th>备注</th>
                                        <th>状态</th>
                                        <th>添加日期</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <volist name="user" id="vo">
                                <tbody>
                                    <tr>
                                        <td>
                                            <input type="checkbox" class="i-checks" name="input[]">
                                        </td>
                                        <td>{$vo.id}</td>
                                        <td>{$vo.username}</td> 
                                        <td>{$vo.remark}</td> 
                                       	<td>
	                                       <if condition="$vo[status] eq 1">
												<span style="color:Green">已启用</span>
	                                       <else/>
	                                       		<span style="color:red">未启用</span>
	                                       </if>
                                        </td>
                                        <td>{$vo.createtime|date ="Y-m-d H:i:s",###}</td>
                                        <td> 
                                        <a href="{:U('Manager/edt',array('id'=>$vo['id']))}"title ="修改"><i class="fa fa-edit text-navy"></i></a>&nbsp;&nbsp;
                                        <if condition ="$vo[username] neq $admin">
                                        	<a href="{:U('Manager/del',array('id'=>$vo['id']))}"title ="删除"><i class="fa fa-times text-navy" onclick="return confirm('确定要删除吗？');"></i></a>
                                      	</if>
                                        </td>
                                    </tr>
                                </tbody>
                                </volist>
                            </table>
                        </div>

						<div class ="pagination">{$page}</div>
						
                    </div>
                </div>
            </div>

        </div>
    </div>
</body>

</html>
